package com.example.kehu.service.impl;

import com.example.kehu.dao.ClientMapper;
import com.example.kehu.entity.Client;
import com.example.kehu.service.ClientService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;

/**
 * --- 业精于勤,荒于嬉 ---
 *
 * @author Song
 * @date 2024/9/11
 * @desc First
 */
@Service
public class ClientServiceImpl implements ClientService {

    @Resource
    private ClientMapper clientMapper;

    @Override
    public List<Client> finaAll() {
        return clientMapper.findAll();
    }

    @Override
    public boolean delete(int id) {
        return clientMapper.delete(id);
    }

    @Override
    public boolean addList(Client client) {
        return clientMapper.addList(client);
    }

    @Override
    public List<Client> findByMap(HashMap<String, String> map) {
        return clientMapper.findByMap(map);
    }
}
